import { Button } from 'antd-mobile'
import {
  BrowserRouter as Router,
  Route,
  Link,
  Redirect,
  Switch,
} from 'react-router-dom'
import CityList from './pages/CityList'
import Home from './pages/Home'
function App() {
  return (
    <Router>
      <div className="App">
        <Switch>
          <Redirect exact from="/" to="/index"></Redirect>
          {/* <Redirect exact from="/home" to="/home"></Redirect> */}
          {/* <Route exact path="/" component={Home}></Route> */}
          <Route path="/citylist" component={CityList}></Route>
          <Route path="/" component={Home}></Route>
        </Switch>
      </div>
    </Router>
  )
}

export default App
